#include "Project_main1.h"
#include "Project_main2.h"
#include "Project_main3.h"
#include "Project_main4.h"

extern unsigned char Ser1_RX_Flag;
extern unsigned char Ser1_RX_Buf[100];
//extern unsigned char Ser2_RX_Flag;
//extern unsigned char USART2_RX_BUF[100];
//extern unsigned char Ser3_RX_Flag;
//extern unsigned char USART3_RX_BUF[100];
uint8_t max_num1 = 0;
uint8_t max_num2 = 0;
uint8_t max_num3 = 0;
uint8_t max_num4 = 0;
int main(void)
{
	SystemInit();
    delay_init();
	NVIC_Configuration();
    USART1_init(115200);
	timer_Init();
    Iport_Init();
    OLED_Init();
	OneWire1_INIT();
	OneWire2_INIT();
	OneWire3_INIT();
	OneWire4_INIT();
	IP_get();
	get_Search1(&max_num1);
    while (1) {

		if (Ser1_RX_Flag == 1) {
            Ser1_RX_Flag = 0;

            switch (Ser1_RX_Buf[5]) {
            case 0xA3:
                get_temp1();
                break;

            default:
                break;
            }
        }
    }
}

